package com.design.pattern.singleton.lazy;/** * 优点：节省了内存,线程安全 * 缺点：性能低 * create by yufeng on 2021/7/3 21:12 */public class LazySimpleSingletion {    private static LazySimpleSingletion instance;    private LazySimpleSingletion(){}    public synchronized static LazySimpleSingletion getInstance(){        if(instance == null){            instance = new LazySimpleSingletion();        }        return instance;    }}